﻿using System.Windows.Controls;

namespace BattleFury.Server.Wpf.Views
{
	public partial class MainView
	{
		private void DataStreamSelectionChanged(object sender, SelectionChangedEventArgs e)
		{
			var listView = (ListView)sender;
			var lastItem = listView.Items.Count - 1;
			listView.ScrollIntoView(listView.Items[lastItem]);
		}
	}
}